//
//  WaitPayTestCell.m
//  MIDI
//
//  Created by E.M.Game on 15/9/30.
//  Copyright (c) 2015年 QXSX. All rights reserved.
//

#import "WaitPayTestCell.h"
#import "CommFunc.h"

@implementation WaitPayTestCell

- (void)awakeFromNib {
    // Initialization code
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    //[super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+(id)loadFromeXib
{
    NSString *nibName = NSStringFromClass([self class]);
    return [[[NSBundle mainBundle] loadNibNamed:nibName owner:nil options:nil] firstObject];
}

-(int)getHeight
{
    int height = [CommFunc sizeWithString:self.addrLb.text
                                     font:[UIFont fontWithName:@"Hiragino Sans GB" size:12]
                                      max:CGSizeMake(self.addrLb.frame.size.width, MAXFLOAT)].height;
    
    if (height <= 0)
        return 84;
    else
    {
        height = self.frame.size.height + height;
        
        return height;
    }
    
    return 0;
}


@end



